package it.unibo.convoycruisecontrol.simulation;

import it.unibo.convoycruisecontrol.simulation.ISimulatorControlPanel;
import it.unibo.convoycruisecontrol.chiefboatsubsystem.ControlPanel;
import it.unibo.location.LocationDevice;
import it.unibo.util.InformationConverter;

/**
 * @author ale
 * @version 1.0
 * @created 24-ott-2012 00:48:19
 */
public class SimulatorControlPanel extends ControlPanel implements ISimulatorControlPanel {

	private int amplificationRatio;
	
	public SimulatorControlPanel(int boatsNumber, int distanceLimit, LocationDevice locDev, InformationConverter informationConverter) throws Exception
	{
		super(boatsNumber, distanceLimit, locDev, informationConverter);
		amplificationRatio = 2;
	}

	public int getAmplification(){
		return amplificationRatio;
	}

	/**
	 * 
	 * @param value
	 */
	public void setAmplification(int value){
		this.amplificationRatio = value;
	}

	/**
	 * 
	 * @param speed
	 */
	public void setSpeed(float speed){
		super.setSpeed(speed*amplificationRatio);
	}


}